﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace KuPeiXun.Test
{
    public partial class Test1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            KuPeiXun.Entity.Country country = new Entity.Country();
            country.ID = Guid.NewGuid();
            country.Name = this.TextBox1.Text.Trim();
            country.ManagerId = Guid.NewGuid();
            country.Manager = "Test";
            country.CreateDate = DateTime.Now;
            KuPeiXun.Dao.ICountry dao = new KuPeiXun.Dao.Action.EF.Country();
            dao.Insert(country);
        }
    }
}